#!/bin/bash

echo "=== 检查 wxWidgets 依赖 ==="

echo "1. 搜索项目中的 wxWidgets 引用:"
grep -r "wx" ../cbp2make/src/ | grep -i "#include\|wx" | head -10

echo ""
echo "2. 检查 main 函数和程序入口:"
grep -A10 -B5 "main" ../cbp2make/src/cbp2make.cpp | head -20

echo ""
echo "3. 检查控制台 vs GUI 程序:"
grep -i "subsystem\|console\|windows" ../cbp2make/src/cbp2make.cpp | head -10

echo ""
echo "4. 项目类型分析:"
file ../cbp2make/bin/cbp2make.exe 2>/dev/null || echo "原项目可执行文件不存在"
